# -*- coding: utf-8 -*-
# @Time : 2021/6/14 3:28
# @Author : lanjy
# @Email : wayne_lau@aliyun.com
# @File : demo.py
# @Project : python_learn

# 该实例演示了数字猜谜游戏
number = 7
guess = -1
print("数字猜谜游戏!")
while guess != number:
    guess = int(input("请输入你猜的数字："))

    if guess == number:
        print("恭喜，你猜对了！")
    elif guess < number:
        print("猜的数字小了...")
    elif guess > number:
        print("猜的数字大了...")